home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
002
/
pcomenu.arc
/
PCOMENU.DOC
< prev
Wrap
Text File
|
1986-03-06
|
7KB
|
199 lines
MOUSE SUPPORT FOR PC-OUTLINE
PC-Outline, with its sophisticated popup menus, is a natural for
mouse use. Hopefully, this product will incorporate mouse
support in a future release.
In the meantime, here's a Microsoft Mouse menu that provides
simple, yet adequate support for PC-Outline.
The package consists of this file, PCOMENU.DOC, and PCOMENU.DEF,
the source code required to generate the customized Microsoft
Mouse menu PCOMENU.MNU.
The Microsoft Mouse driver (MOUSE.SYS or MOUSE.COM) must be
installed on the PC-Outline diskette. Please refer to the
Microsoft Mouse User's Guide for instruction on how to install
this software on your program disk.
In addition, the MENU.COM file (found on the Microsoft Mouse
System disk) must also be copied to the PC-Outline diskette.
MENU INSTALLATION
Copy the PCOMENU.DEF file to the PC-Outline diskette. With the
PC-Outline diskette in drive A and the Microsoft Mouse system
disk in drive B, type
A>B:MAKEMENU
Name of file to convert: PCOMENU.DEF <ENTER>
Conversion complete
You should then add the following line to your AUTOEXEC.BAT file:
MENU PCOMENU
If you are using the MOUSE.COM driver, your AUTOEXEC file should
look something like this:
MOUSE
MENU PCOMENU
PCO
USE OF MOUSE WITH PC-OUTLINE
Once the software has been installed, using the mouse with PC-
OUTLINE is exceedingly simple.
When PC-Outline first comes up, you may use either mouse button
to get past the Copyright / Shareware screen.
The first menu option (open new outline, load existing outline,
etc...) may be selected by moving the mouse up / down and
pressing both mouse buttons at the same time. If you are
selecting an existing outline, you may scroll through the outline
directory with the mouse and press both buttons at once to load
the desired outline.
While in normal outline edit mode, moving the mouse about will
scroll throught the document.
Pressing either mouse button will make the FILE menu appear.
While in menu mode, moving the mouse up and down will scroll
through the current menu's options, and moving left and right
will scroll through the various PC-Outline menus.
To select the current menu option, press both mouse buttons
simultaneously.
To get back to edit mode, press either button.
That's it.
THE MOUSE MENU PROGRAM
The original mouse menu source code, PCOMENU.DEF, can be easily
changed. A copy of this code follows. Please note that the
sequence numbers shown are for convenience and do not exist in
the actual file.
1 BEGIN INS,INS,ENTR,LF,RT,UP,DN,4,8
2 INS: EXECUTE CHK1
3 ;
4 ;-----CHECK TO SEE IF WE ARE IN MENU MODE
5 ;
6 CHK1: MATCH 1,2,NORMAL,"FILE",MMODE,CHK2
7 CHK2: MATCH 1,8,NORMAL,"OUTLINE",MMODE,CHK3
8 CHK3: MATCH 1,17,NORMAL,"EDIT",MMODE,CHK4
9 CHK4: MATCH 1,23,NORMAL,"DISPLAY",MMODE,CHK5
10 CHK5: MATCH 1,32,NORMAL,"PRINT",MMODE,CHK6
11 CHK6: MATCH 1,39,NORMAL,"HIDE",MMODE,CHK7
12 CHK7: MATCH 1,45,NORMAL,"SHOW",MMODE,CHK8
13 CHK8: MATCH 1,51,NORMAL,"WINDOW",MMODE,CHK9
14 CHK9: MATCH 1,59,NORMAL,"ADVANCED",MMODE,GOMENU
15 ;
16 ;-----WE ARE IN MENU MODE, LEFT BUTTON PRESSED, TYPE AN 17 E
SCAPE
18 ;-----AND RESTORE MOUSE SENTIVITY TO EDIT MODE VALUES
19 ;
20 MMODE: EXECUTE SENS2,OUT2
21 SENS2: ASSIGN ,,,,,,,4,8
22 OUT2: TYPE ESC
23 ;
24 ;-----WE ARE NOT IN MENU MODE, LEFT BUTTON PRESSED,
25 TYPE AN INSERT
26 ;-----AND CHANGE MOUSE SENSITIVITY PARAMETERS
27 ;
28 GOMENU: EXECUTE SENS1,INS1
29 SENS1: ASSIGN ,,,,,,,16,32
30 INS1: TYPE 0,82
31 ;
32 ;-----STANDARD MOVEMENT AND KEY DEFINITIONS
33 ;
34 ENTR: TYPE ENTER
35 LF: TYPE 0,75
36 RT: TYPE 0,77
37 UP: TYPE 0,72
38 DN: TYPE 0,80
The program is fairly simple. The only actual logic is used in
the CHK1-CHK9 statements, which check for the presence of one of
the menu headers after one of the buttons has been pressed to
determine if PC-OUTLINE is in menu mode. If it is not, the menu
will generate an Ins keystroke to get PC-OUTLINE into menu mode.
If it was, then the menu will generate an Esc keystroke to get
out of menu mode. Also note that the mouse horizontal and
vertical sensitivity parameters are changed in menu mode. This
is to prevent too rapid a vertical scroll through menu options,
and accidental change of menus if the mouse is moved
horizontally. Normal sensitivity is restored in edit mode.
PC-OUTLINE is an outstanding product in itself and can be used
quite productively without a mouse. If a mouse is already
available, however, this menu somewhat adds to the product's ease
of use.
THIS PROGRAM IS IN THE PUBLIC DOMAIN
You may use this program, modify it, and distribute it as you
wish, but do not sell it. The author makes no guarantees as to
its usefulness or applicability. Should you have questions or
suggestions for improvements, you may contact me at the address
below:
Dan Moore
Arvin Industries
1531 13th St
Columbus,IN 47201
(812)379-3426